local string_format = string.format
local reason = {}
--------------------------------------------子游戏------------------------------
reason.BET_COIN                    = 1				     --押注金币
reason.WIN_COIN                    = 2				     --赢金币
reason.BET_COIN_BACK               = 3		     	     --押注失败金币返回
reason.COST_COIN_ERROR_BACK        = 4 			         --扣除金币失败返还
reason.FRIEND_ERROR_ROOMCARD_BACK  = 5	        	     --好友房扣除房卡失败返卡
reason.PAY_FEE                     = 6				     --扣台费
reason.USE_MAGIC_PICTRUE           = 7				     --使用魔法表情
reason.FRIEND_TABLE_ROOMCARD_COST  = 8		             --开房扣除房卡
reason.FRIEND_TABLE_RETURN         = 9  			     --好友房解散后返卡
reason.BET_ROOMCARD_BACK           = 10		     	     --押注失败房卡返回
reason.WIN_ROOMCARD                = 11				     --赢房卡
reason.COST_ROOMCARD_ERROR_BACK    = 12					 --扣除房卡失败返还
reason.BET_ROOMCARD                = 13				     --押注房卡
reason.PAY_FEE_ROOMCARD            = 14				     --扣台费(房卡)
reason.PAY_COMMISSION              = 15				     --抽取佣金
---捕鱼
reason.FISHING_FIRE                = 16                  --捕鱼开火
reason.FISHING_CATCH               = 17                  --捕中鱼
reason.FISHING_BUY_BACK            = 18                  --购买失败金币返回
reason.FISHING_BUY_ITEM            = 19                  --购买道具
reason.FISHING_BACK_COINS          = 20                  --子弹退还
--老虎机
reason.TIGER_FREE_BET              = 30                  --免费下注
reason.BET_FREE_TIMES_BACK         = 31                  --返还免费次数
reason.AWARD_FREE_TIEMS            = 32                  --奖励免费次数
reason.LOSE_COIN                   = 33				     --输金币
--红包扫雷
reason.FHB_BACK                    = 34                  --撤销红包返回金币
reason.QHB_BACK                    = 35                  --抢红包剩余金币返还
-----------------------------------------100000公共部分使用---------------------------
reason.GAMECOIN_BANKRUPT           = 100000              --破产补助
reason.GAMECOIN_REGISTER           = 100001              --注册送金币
reason.GAMECOIN_SYS_ADD            = 100002              --后台加金币
reason.GAMECOIN_SYS_MINUS          = 100003              --后台减金币
reason.GAMECOIN_SHARE              = 100004              --分享奖励
reason.GAMECOIN_BIND               = 100005              --绑定奖励
reason.GAMECOIN_PROMOTION_LST      = 100006              --活动推广金币消耗
reason.GAMECOIN_PROMOTION_WIN      = 100007              --活动推广金币奖励
reason.GAMECOIN_CHARGE_REWARD      = 100008              --首充送金币
reason.ROOMCARD_PROMOTION_WIN      = 100009              --活动推广房卡奖励
reason.ROOMCARD_CHARGE_REWARD      = 100010              --首充送房卡
reason.ROOMCARD_SYS_ADD            = 100011              --系统加房卡
reason.ROOMCARD_SYS_MINUS          = 100012              --系统减房卡
reason.ROOMCARD_REGISTER           = 100013              --注册送房卡
reason.DIAMOND_SWITCH_SEAT         = 100014              --花钻石换座位
reason.DIAMOND_PROMOTION_LST       = 100015              --活动推广钻石奖励
reason.DIAMOND_SYS_ADD             = 100016              --后台加钻石
reason.DIAMOND_SYS_MINUS           = 100017              --后台减钻石
reason.DIAMOND_REGISTER            = 100018              --注册送钻石
reason.SIGN_IN                     = 100019	             --签到
reason.TAKE_SIGN_AWARD             = 100020	             --领取签到奖励
reason.TAKE_MAIL_ATTACH            = 100022	             --领取邮件奖励
reason.GM                          = 100023	             --GM操作
reason.BUY_FROM_SHOP               = 100025	             --商城购买
reason.NEWBIE_AWARD                = 100027              --新手奖励
reason.BUY_FROM_SHOP_RMB           = 100028	             --商城购买
reason.ADD_COINS_FOR_ROBOT         = 100029	             --为机器人增加金币
reason.TAKE_TASK_AWARD             = 100030	             --领取任务奖励
reason.BANKRUPT_REGISTER           = 100031              --破产登记
reason.CARD_RECORD                 = 100032              --牌局记录
reason.USER_ONLINE                 = 100033              --在线用户
reason.USER_PLAYING                = 100034              --在玩用户
reason.ACTIVITY_ADD_COINS          = 100035              --活动添加金币
reason.PAY_BY_RMB_DETAIL           = 100036	             --人民币购买详情记录
reason.PAY_BY_SHOP_DETAIL          = 100037	             --商城购买详情记录
reason.CASHBACK                    = 100038              --代理返现
reason.DESPOSIT_SAFE_BOX           = 100039              --保险箱存钱
reason.EXCHANGE_COINS			   = 100040				 --兑换金币
reason.BIND_PHONE_REWARD		   = 100041				 --绑定手机奖励
reason.RETURNBACK				   = 100042				 --后台拒绝返回金币
reason.REDUCE_COINS_FOR_ROBOT      = 100043	             --为机器人减少金币
reason.SET_COINS_FOR_ROBOT         = 100043	             --为机器人设置金币
reason.PLAYER_WIN                  = 100044              --玩家牌局赢钱
reason.PLAYER_LOSE                 = 100045              --玩家牌局输钱
reason.NEW_PLAYER_ADD              = 100046              --新增玩家
reason.CHARGE_RETRUN               = 100047              --充值返水
reason.LUCKY                       = 100048              --鸿运
reason.SEVEN_AWARD_EXCHANGE        = 100049              --周福利兑换

reason.NEW_BIND_LUCKY_DRWA         = 100050              --拉新活动抽奖
reason.OPEN_CAISHEN                = 100051              --打开财神红包
reason.AWARD_LUCKY_DRWA            = 100052              --大抽奖
reason.TASK_ACT                    = 100053              --活动领取奖励
reason.CLUB_EXCHANGE               = 100054              --俱乐部兑换 
reason.FORCE_ROBOT_BANKER          = 100055              --强制设置机器人庄家
reason.TAKE_OUT_SAFE_BOX           = 100056              --保险箱取钱
reason.WATER                       = 100057              --抽成流水
reason.WATER_RETRUN                = 100058              --返水
reason.VIP_REWARD                  = 100059              --vip奖励
reason.COINS_STORM                 = 100060              --金币暴风雨
reason.SIGN_REWARD                 = 100061              --签到
reason.SALARY_MONTH                = 100062              --月俸禄
reason.GIVE_CAIJING                = 100063              --彩金赠送
reason.EXCHANGEING                 = 100064              --兑换中
reason.REDUCE_CAIJING              = 100065              --扣除彩金
reason.PAYMENT_COINS               = 100066              --用户加款到金币
reason.PAYMENT_SAFE_BOX            = 100067              --用户加款到保险柜
reason.SET_SHISUN_COIN             = 100068              --转到视讯
reason.GET_SHISUN_COIN             = 100069              --视讯转回
reason.RESCUE                      = 100070			     --救援金
reason.FIRST_CHARGE_RETRUN         = 100071              --首充反利
reason.TREE                        = 100072              --摇钱树
reason.DAY_CHARGE                  = 100073              --每日首充
reason.SET_SHISUN_COIN_EER         = 100074	             --转入视讯错误后自动返回金币
reason.GM_SHISUN_COIN         	   = 100075	             --转入视讯错误后后台通过GM返回金币

-----------------------------------------200000账号部分使用---------------------------
reason.ACCOUNT_REGISTER            = 200000	             --用户注册
reason.ACCOUNT_LOGIN               = 200001	             --账号登入
reason.ACCOUNT_LOGOUT              = 200002	             --账号登出




local MT = {}
MT.__index = function(t,k)
    assert(nil,string_format('not find reason %s',k))
end     

return setmetatable(reason,MT)
